﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTInfocorp.Dominio;
using RESTInfocorp.Persistencia;

namespace RESTInfocorp
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Infocorp" in code, svc and config file together.
    public class Infocorp : IInfocorp
    {
       

        public List<Persona> ObtenerPersonas()
        {
            return PersonaDAO.ObtenerPersonas();
        }

        //public List<Persona> ObtenerPersonasDocumento(string nroDocumento)
        //{
        //    return PersonaDAO.ObtenerPersonasDocumento(nroDocumento);
        //}


        public string ObtenerPersonasDeuda(string nroDocumento)
        {
            return PersonaDAO.ObtenerPersonasDeuda(nroDocumento);
        }
    }
}
